<?php

/**
 +-----------------------------------------------------
 * PublicModel
 +-----------------------------------------------------
 * @author	liuricheng 
 * @time	2014-03-13
 * @type	[add]
 * 
 */
import("ORG.Util.Function");


class BrandModel extends Model{
		
	public function is_only($field,$value){
		$sql	=	" select count(*) count from ybr_brand where $field = '{$value}' ";
		$data	=	$this->query($sql);
		return ($data[0]['count'] == 0);
	}
	
	public function getBrandList(){
		$sql	=	" select * from ybr_brand ";
		return $this->query($sql);
	}
	
}